home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
DEV
/
A-B
/
Alpha.5.05.cpt
/
Help
/
Shells
< prev
next >
Wrap
Text File
|
1992-08-29
|
2KB
|
46 lines
SHELLS
The basic idea of the shells is to provide an interactive way to access
TCL, it is *NOT* intended to serve as a pseudo-unix-shell. However, I
don't use MPW or AU/X and therefore I implemented a very few useful
functions. All pathnames must be mac pathnames, relative pathnames start
with colons, absolute pathnames don't. For instance, ':file1' specifies a
file named 'file1' in the current directory. '::file2' specfies a file in
the parent directory, and ':::file3' is a file in the parent's parent's
directory. Additionally, hitting the tab key w/ a partial pathname
invokes a filename-completion function that tries to fill in the rest of
the characters of the name.
cd <relative or absolute pathname>
Change directory. Pathnames must be
cp <file1> <file2>
or
cp <file1> .... <destDir>
Basic unix functionality. Not recursive.
ls [-Fl] [<file>]...
Two, mutually exclusive flags. '-F' just gives the normal display, with
a '*' behind applications and a '/' behind directories (folders). '-l'
presents a long listing, including sizes of both forks, creator, file
type, and last modification time. 'procs.tcl' includes functions 'l' and
'll' which serve as my Unix aliases to 'ls -F' and 'ls -l'.
mv <file1> <file2>
Moves a file, potentially across volume boundaries. Not recursive.
rm <file>...
Removes files and empty directories. Currently no way to recursively
remove (although you could code up a TCL proc to do this).
The file "shell.tcl" contains Tcl code implementing much of the shell
interface. The interface contains 'histNext' and 'histPrev' (bound to
control-p and control-n) commands that let you scroll through previous
commands without retyping. Unfortunately, it doesn't seem possible to
access the previous command until you have at least started executing the
next, where a "command" here means a command evaluated by the shell. Since
the above commands are issued before you execute whatever command you
choose next, you're stuck.